package ModelLayer;

/**
 * Class for objects of Person - Superclass
 * 
 * @author (AF, RA, KP, RL) 
 * @version (2012.06.05)
 */
public class Person
{
    private String name;
    private String address;
    private String phoneNo;
    private String email;
    private String city;
    private int postalCode;

    /**
     * Constructor for objects of class Person
     * 
     * @param name name of Person as String 
     * @param address address of Person as String
     * @param phoneNo phoneNo of Person as int
     * @param email email of Person as String
     * @param city city of Person as String
     */
    public Person(String name, String address, String phoneNo, String email, String city, int postalCode)
    {
        this.name = name;
        this.address = address;
        this.phoneNo = phoneNo;
        this.email = email;
        this.city = city;
        this.postalCode = postalCode;
    }
    
    /**
     * finds name of person
     * 
     * @param none
     * 
     * @return name as String
     */
    public String getName()
    {
        return this.name;
    }
    
    /**
     * sets name of person
     * 
     * @param name name of person as String
     * 
     * @return none
     */
    public void setName(String name)
    {
        this.name = name;
    }
    
    /**
     * finds address of person
     * 
     * @param none
     * 
     * @return address as String
     */
    public String getAddress()
    {
        return this.address;
    }
    
    /**
     * sets address of person
     * 
     * @param address address of person as String
     * 
     * @return none
     */
    public void setAddress(String address)
    {
        this.address = address;
    }
    
    /**
     * finds city of person
     * 
     * @param none
     * 
     * @return city as String
     */
    public String getCity()
    {
        return this.city;
    }
    
    /**
     * sets city of person
     * 
     * @param city city of person as String
     * 
     * @return none
     */
    public void setCity(String city)
    {
        this.city = city;
    }
    
    /**
     * finds postal code of person
     * 
     * @param none
     * 
     * @return postalCode as int
     */
    public int getPostalCode()
    {
        return this.postalCode;
    }
    
    /**
     * sets postalCode of person
     * 
     * @param postalCode postalCode of person as int
     * 
     * @return none
     */
    public void setPostalCode(int postalCode)
    {
        this.postalCode = postalCode;
    }
    
    /**
     * finds phone number of person
     * 
     * @param none
     * 
     * @return phoneNo as String
     */
    public String getPhoneNo()
    {
        return this.phoneNo;
    }
    
    /**
     * sets phone number of person
     * 
     * @param phoneNo phoneNo of person as String
     * 
     * @return none
     */
    public void setPhoneNo(String phoneNo)
    {
        this.phoneNo = phoneNo;
    }
    
    /**
     * finds email of person
     * 
     * @param none
     * 
     * @return email as String
     */
    public String getEmail()
    {
        return this.email;
    }
    
    /**
     * sets email of person
     * 
     * @param email email of person as String
     * 
     * @return none
     */
    public void setEmail(String email)
    {
        this.email = email;
    }
}
